<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>发布</title>
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/nprogress.css">
    <link rel="stylesheet" type="text/css" href="/css/style.css">
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/editormd.min.css">
    <link rel="apple-touch-icon-precomposed" href="images/icon.png">
    <link rel="shortcut icon" href="images/favicon.jpg">
    <script src="/js/jquery-2.1.4.min.js"></script>
    <script src="/js/jquery.lazyload.min.js"></script>
    <script src="/js/jquery.ias.js"></script>
    <script src="/js/nprogress.js"></script>
    <script src="/js/bootstrap.min.js"></script>

    <!--[if gte IE 9]>
    <script src="/js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="/js/html5shiv.min.js" type="text/javascript"></script>
    <script src="/js/respond.min.js" type="text/javascript"></script>
    <script src="/js/selectivizr-min.js" type="text/javascript"></script>


    <![endif]-->
    <!--[if lt IE 9]>
    <script>;window.location.href = "http://support.dmeng.net/upgrade-your-browser.html?referrer=" + encodeURIComponent(window.location.href);</script>
    <![endif]-->
</head>
<body>
<header class="header">
    <nav class="navbar navbar-default" id="navbar">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#header-navbar" aria-expanded="false">
                    <span class="sr-only"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <h1 class="logo hvr-bounce-in"><a href="/" title="社区(LY)">
                    <img width="40" src="images/favicon.jpg" alt="社区(LY)"></a></h1>
            </div>
            <div class="collapse navbar-collapse" id="header-navbar">
                <form class="navbar-form visible-xs" action="/Search" method="post">
                    <div class="input-group">
                        <input type="text" name="keyword" class="form-control" placeholder="请输入关键字" maxlength="20"
                               autocomplete="off">
                        <span class="input-group-btn">
		                    <button class="btn btn-default btn-search" name="search" type="submit">搜索</button>
		                </span>
                    </div>
                </form>
                <ul class="nav navbar-nav navbar-right">
                    <li><a data-cont="社区(LY)" title="社区(LY)" href="/index.html">首页</a></li>
                    <li><a data-cont="广外新闻" title="广外新闻" href="/news">广外新闻</a></li>
                    <li><a data-cont="发布问题" title="发布问题"  class="publish" style="display: none;" href="/publish">发布问题</a></li>
                    <li><a data-cont="注册" title="注册" class="signin" href="/signin.html">注册</a></li>
                    <li><a data-cont="登录" title="登录" class="login" href="/login.html">登录</a></li>
                    <li class="dropdown user" style="display: none">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                           aria-expanded="false">
                            <span><img class="img-circle avatar_url" style="width: 20px;height: 20px"></span>
                            <span class="username"></span>
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <!--                            <li><a href="/personal/questions">我的问题</a></li>-->
                            <li><a href="/personal.html">个人中心</a></li>
                            <li><a href="/logout">退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</header>
<div class="container-fluid">
    <form action="/publish" method="post" onsubmit="return checkQuestion()">
        <div class="row">
            <div class=" col-lg-5 col-md-12 col-sm-12">
                <input class="form-control" type="text" placeholder="标题" name="title" id="title">
            </div>
            <div class=" col-lg-4 col-md-12 col-sm-12">
                <input type="text" class="form-control" id="questionTags" name="tags"  autocomplete="off"
                       placeholder="请输入标签，以 ，分隔" onclick="showSelectionTags()">
                <div id="selectionTags" style="display: none;">
                    <ul class="nav nav-tabs category" role="tablist">
                        <!--                            <li role="presentation">-->
                        <!--                                <a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a>-->
                        <!--                            </li>-->
                    </ul>

                    <!-- Tab panes -->
                    <div class="tab-content tags">
                        <div role="tabpanel" class="tab-pane active" id="home">
                                 <span onclick="selectTag(this)" class="label label-info" style="margin-left: 5px;">
                                        <span class="glyphicon glyphicon-tag">Spring</span>
                                 </span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-2 col-md-4 col-sm-12">
                <button type="submit" class="btn-success form-control">提交</button>
                <div id="tip"></div>
            </div>

        </div>
        <div class="row">
            <div id="question-editor">
            <textarea style="resize: none;display: none;" class="form-control" rows="10" placeholder="详细内容..."
                      id="content"
                      name="content"></textarea>
            </div>
        </div>
    </form>

</div>
<footer class="footer">
    <div class="container">
        <p> Copyright &copy; 2016.Company name All rights.
            <a href="/" target="_blank" title="社区(LY)">社区(LY)</a>
        </p>
    </div>
    <div id="gotop"><a class="gotop"></a></div>
</footer>
</body>

<script src="/js/scripts.js"></script>
<script src="/js/editormd.min.js" type="application/javascript"></script>
<script type="text/javascript">
    authenticate();
    $(function () {
        var editor = editormd("question-editor", {
            width: "100%",
            height: "",
            path: "/js/lib/",
            delay: 0,
            watch: false,
            placeholder: "问题详细内容...",
            imageUpload: true,
            imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp"],
            imageUploadURL: "/file/upload"
        });
    });
</script>


</html>